#{extends 'CRUD/layout.html' /}
#{set title:messages.get('objects.nosologytypes') /}

<div id="crudList" class="${type.name}">

    <h2 id="crudListTitle">&{'objects.nosologytypes'}</h2>

    <div id="crudListSearch">
        #{crud.search /}
    </div>

    <div id="crudListTable">
        #{crud.table fields:['nosologyTypeName', 'syndrome']}
        	#{crud.custom 'nosologyTypeName'}
           	  	<span class="hiddenLinks">@{NosologyTypes.show(object.nosologyTypeId)}</span>
		      	${object.nosologyTypeName}
		   	#{/crud.custom}
	        #{crud.custom 'syndrome'}
	        	<span class="hiddenLinks">@{Syndromes.show(object.syndrome.syndromeId)}</span>
			    ${object.syndrome.name}
		   #{/crud.custom}
        #{/crud.table}
    </div>

    <div id="crudListPagination">
    	&{'total', models.NosologyType.count()}
        #{pagination /}
    </div>

    <p id="crudListAdd">
        <a href="@{blank()}">&{'nosologyType.add'}</a>
    </p>

</div>
